﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class OrderOperationLogInfoConfig : EntityTypeConfiguration<OrderOperationLogInfo>
    {
        public OrderOperationLogInfoConfig()
        {
            ToTable("Himall_OrderOperationLogs");
            Property(item => item.OperateContent).HasColumnType("varchar").HasMaxLength(1000);
            Property(item => item.Operator).HasColumnType("varchar").HasMaxLength(100);
            HasRequired(x => x.OrderInfo).WithMany(x => x.OrderOperationLogInfo).HasForeignKey(x => x.OrderId);
        }
    }
}
